import Router from 'koa-router'
import publicController from '../../api/PublicController'
import contentController from '../../api/ContentController'
import userController from '../../api/UserController'
import commentController from '../../api/CommentController'
const router = new Router()
router.prefix('/public')

// 获取图片验证码
router.get('/getCaptcha', publicController.getCaptcha)
// 获取文章列表
router.get('/list', contentController.getPostList)
// 获取友情连接
router.get('/links', contentController.getLinks)
// 获取温馨通道
router.get('/tips', contentController.getTips)
// 获取本周热议
router.get('/topweek', contentController.getTopWeek)
// 确认修改邮件
router.get('/resetEmail', userController.updateUsername)
// 获取用签到排行
router.get('/hotSignRecord', publicController.getHotSignRecord)
// 获取文章详情
router.get('/content/detail', contentController.getPostDetail)
// 获取文章评论列表
router.get('/comments', commentController.getComments)
// 获取用户基本信息
router.get('/info', userController.getBasicInfo)
export default router
